//
//  AppTools.h
//  Fish
//
//  Created by KING on 16/5/11.
//  Copyright © 2016年 huwo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
//#import <MBProgressHUD.h>
typedef void(^AFNBlock)(id result);
typedef void(^AFNErrorBlock)(NSError *error);
typedef void(^AFNData) (id data);
@interface AppTools : NSObject
/**请求数据*/
+ (void)createAFN:(NSString *)url success:(AFNBlock)successBlock error:(AFNErrorBlock)errorblock;
+ (void)HUDAlert:(id)view string:(NSString *)string;
+(void)postData:(NSString *)url from:(AFNData)data dic:(NSDictionary *)dic success:(AFNBlock)successBlock error:(AFNErrorBlock)errorblock;
+(void)Alert:(NSString *)string s:(id)s;
+(void)postURL:(NSString *)url data:(NSDictionary *)dic success:(AFNBlock)successBlock error:(AFNErrorBlock)errorblock;

@end
